home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / graphics / shadow20.arj / SHADOWBX.TXT < prev   
Text File  |  1993-12-10  |  3KB  |  63 lines

  1.       ┌──────────────────────────────────────────────────────────────┐
  2.       │  If loaded with READ.COM, PRESS <Esc> when you wish to END   │
  3.       └──────────────────────────────────────────────────────────────┘
  4.  
  5.                        Fri  12-10-1993  01:00:29
  6.  
  7.                         ┌─────────────────────╖
  8.                         │     SHADOWBX.BAS    ║
  9.                         ╘═════════════════════╝
  10.  
  11.                               Version 2.0
  12.  
  13. One of the little and elusive programming problems in QuickBASIC is how
  14. to make a "true" shadowed box. You know... where you can see the printed
  15. text in the "shadow" in muted colors. The first Norton Utilities I
  16. bought did that and also had a batch program called BE.EXE which would
  17. make text box looks "3-D."
  18.  
  19. It's only taken me three (3) years to figure how how to do this. Sure
  20. it's not too hard to make a black line to put on the bottom of the box
  21. and figure out how to put one on the right; I did that with the program
  22. DRAWIT.EXE posted here on CompuServe. But that is kludgy and doesn't
  23. have that three dimensional effect you get by seeing PRINT -through- the
  24. shadow.
  25.  
  26. According to my guruish friends, you need assembly to "paint over" the
  27. color on a screen without disturbing the text... and they are right. But
  28. how's about using PEEK and POKE to find what's on the screen as far as
  29. the character, then change the color of the character, then print the
  30. COLOR back to the screen.  That's what SHADOWBX.BAS does.
  31.  
  32. This is version 2.0... <sigh> got caught using too much PEEK and POKE
  33. and have revised the program. Now SHADOWBX.COM will allow you to make
  34. multiple boxes with multiple different backgrounds. It will detect if
  35. you have a monochrome computer screen. If you do... you will be asked to
  36. exit. If you don't exit... you are on your own. The code is only for a
  37. color monitor.
  38.  
  39. You know... I have never even -seen- a monochrome VGA monitor so it's
  40. hard for me to plan code for such an exotic (to me) beastie.
  41.  
  42. The code which makes the shadow is actually pretty simple. Most of that
  43. information and code is from "Microsoft QuickBASIC Bible," page 714-21.
  44.  
  45. If you downloaded Version 1.0, you will be surprised with all the
  46. additional SUBs and FUNCTIONS in Version 2.0. What can I say? I've been
  47. reading Ethan Winer's 1991 Book "BASIC Techniques and Utilities" and
  48. thought I would stuff a few into this program to see if they made the
  49. "logic" better. I think they do. Ethan says the program will compile
  50. smaller with these SUBs for LOCATE and COLOR.
  51.  
  52. The executable file SHADOWBX.COM is very tiny, like the program
  53. SHADOWBX.BAS. It is included so that you will believe me when I tell you
  54. can really make a shadowed box with this program.
  55.  
  56. When you press <Esc> to leave this help text, the batch file
  57. FROMJOHN.BAT will load SHADOWBX.COM and run that for you.
  58.  
  59.  
  60. Have fun,
  61.  
  62. John De Palma on CompuServe 76076,571
  63.